package com.nulldev.util.languages.localeAPI;

import java.util.Map;

import com.nulldev.util.data.Arrays.maps.FastMaps;
import com.nulldev.util.dataManagement.preferencesAPI.PreferenceInterface;

public class Locales {

	public static class LocaleIDs {
		public static final String ENGLISH_GB = "en_GB";
		public static final String ENGLISH_US = "en_US";
	}

	public static class Locale {
		private final Map<String, String> data = FastMaps.map();

		private final String id;

		public Locale(final String id) {
			this.id = id;
		}

		public Locale(final String id, final PreferenceInterface<String> prefs) {
			this.id = id;
		}

		public String getLocaleID() {
			return this.id;
		}

		public boolean hasEntry(final String entry) {
			return this.data.containsKey(entry);
		}

		public String getEntry(final String entry) {
			return this.data.get(entry);
		}
	}
}
